package com.alks.entity.data.entity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.math.BigDecimal;
import java.math.RoundingMode;

/**
 * @author:xxxxx
 * @create: 2023-08-08 10:13
 * @Description: 型体生产工艺
 */
@Getter
@Setter
@NoArgsConstructor
public class PcStyleProcessCraftRep {
    private BigDecimal seqNo;
    private String partName;
    private String mtlName;
    private String mtlUnit;
    private BigDecimal cutLayer;
    private BigDecimal cutNum2;
    private BigDecimal cutNum;
    private String cutSeq;
    private String deptName;
    private String process1;
    private String process2;
    private String process3;
    private String process4;
    private String process5;
    private String process6;
    private String process7;
    private String process8;
    private String process9;
    private String process10;

    public void setCutLayer(BigDecimal cutLayer) {
        this.cutLayer = cutLayer.setScale(2, RoundingMode.HALF_UP);
    }

    public void setCutNum2(BigDecimal cutNum2) {
        this.cutNum2 = cutNum2.setScale(2, RoundingMode.HALF_UP);
    }

    public void setCutNum(BigDecimal cutNum) {
        this.cutNum = cutNum.setScale(2, RoundingMode.HALF_UP);
    }

    public void setSeqNo(BigDecimal seqNo) {
        this.seqNo = seqNo.setScale(2, RoundingMode.HALF_UP);
    }
}
